FROM frolvlad/alpine-oraclejre8:slim
MAINTAINER  bjlianyu@hotmail.com
VOLUME /tmp
ADD *.jar app.jar
RUN sh -c 'touch /app.jar'
ENV PARAMS="-Djava.security.egd=file:/dev/./urandom"
ENV JAVA_OPTS=""
ENV VARS=""
ENV CONFIG=""
ENTRYPOINT [ "sh", "-c", "java $PARAMS $JAVA_OPTS $VARS -Duser.timezone=GMT+08 -jar /app.jar $CONFIG" ]
